package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author
 * @date 2021/01/30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "visitors")
public class Visitor implements Serializable {
    /**主键值*/
    private ObjectId id;
    /**用户id（被访问者）*/
    private Long userId;
    /**来访者id*/
    private Long visitorUserId;
    /**从哪访问的，如首页、圈子等*/
    private String from;
    /**来访时间*/
    private Long date;
}